﻿@model ChatterBox.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<form method="post" id="openid_form">
    @Html.AntiForgeryToken()
    <input type="hidden" name="action" value="verify" />
    <fieldset>
        <legend>Sign-in</legend>
        <div id="openid_choice">
            <p>Choose your favorite account:</p>
            <div id="openid_btns"></div>
        </div>
        <div id="openid_input_area">
            <input id="openid_identifier" name="openid_identifier" type="text" value="http://" />
            <input id="openid_submit" type="submit" value="Sign-In" />
        </div>
        <noscript>
            <p>OpenID is service that allows you to log-on to many different websites using a single indentity. Find out <a href="http://openid.net/what/">more about OpenID</a> and <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
        </noscript>
    </fieldset>
</form>


@*    @using ( Html.BeginForm( new { ReturnUrl = ViewBag.ReturnUrl } ) )
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary( true )
        
        <fieldset>
            <legend>Log in Form</legend>
            <ol>
                <li>
                    @Html.LabelFor( m => m.UserName )
                    @Html.TextBoxFor( m => m.UserName )
                    @Html.ValidationMessageFor( m => m.UserName )
                </li>
                <li>
                    @Html.LabelFor( m => m.Password )
                    @Html.PasswordFor( m => m.Password )
                    @Html.ValidationMessageFor( m => m.Password )
                </li>
                <li>
                    @Html.CheckBoxFor( m => m.RememberMe )
                    @Html.LabelFor( m => m.RememberMe, new { @class = "checkbox" } )
                </li>
            </ol>
            <input type="submit" value="Log in" />
        </fieldset>
        <p>
            @Html.ActionLink( "Register", "Register" ) if you don't have an account.
        </p>
    }*@

@*<section class="social" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action( "ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl } )
</section>*@


@Styles.Render( "~/Content/css/openid" )

@section Scripts {
    @Scripts.Render( "~/bundles/jqueryval" )
    @Scripts.Render( "~/bundles/jqueryval" )
    @Scripts.Render( "~/bundles/openid" )
    <script type="text/javascript">
        $(function () {
            openid.init('openid_identifier');
        });
    </script>
}
